<template>
  <div id="app">
    <header>
      <h1>hao123</h1>
       <div id="nav">
      <router-link to="/home">首页</router-link> 
      <router-link to="/classify">分类书库</router-link>
      <router-link to="/rank">排行榜单</router-link>
    </div>
    </header>
   
    <router-view/>
  </div>
</template>

<style lang="scss">
*{
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
}
html,body,#app{
  width: 100%;
  height: 100%;
}
header{
  width: 100%;
  height: 150px;
  background-color: #42b983;
}
header h1{
  width: 100%;
  height: 90px;
}

#nav {
  width: 100%;
  height: 60px;
  line-height: 60px;

  a {
    font-weight: bold;
    color: #fff;
    padding: 0 20px;
    display: inline-block;
    text-decoration: none;

    &.router-link-exact-active {
      color: #fff;
    }
  }
    .router-link-active {
    // color: red;
    background: #108860;
  }
}
a{
  text-decoration: none;
}
</style>
